package com.ruoyi.project.treat.domain;

import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Objects;

public class TreDepts extends BaseEntity {
    private Integer deptsId;//科室编号
    private String deptsName;//科室名称
    private String deptsCode;//科室编码
    private Integer deptsNum;//科室挂号量
    private String deptsLeader;//科室领导
    private String deptsPhone;//科室电话
    private Integer status;//科室状态


    public TreDepts() {
    }

    public TreDepts(Integer deptsId, String deptsName, String deptsCode, Integer deptsNum, String deptsLeader, String deptsPhone, Integer status) {
        this.deptsId = deptsId;
        this.deptsName = deptsName;
        this.deptsCode = deptsCode;
        this.deptsNum = deptsNum;
        this.deptsLeader = deptsLeader;
        this.deptsPhone = deptsPhone;
        this.status = status;
    }

    @Override
    public String toString() {
        return "TreDepts{" +
                "deptsId=" + deptsId +
                ", deptsName='" + deptsName + '\'' +
                ", deptsCode='" + deptsCode + '\'' +
                ", deptsNum=" + deptsNum +
                ", deptsLeader='" + deptsLeader + '\'' +
                ", deptsPhone='" + deptsPhone + '\'' +
                ", status=" + status +
                '}';
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TreDepts treDepts = (TreDepts) o;
        return Objects.equals(deptsId, treDepts.deptsId) &&
                Objects.equals(deptsName, treDepts.deptsName) &&
                Objects.equals(deptsCode, treDepts.deptsCode) &&
                Objects.equals(deptsNum, treDepts.deptsNum) &&
                Objects.equals(deptsLeader, treDepts.deptsLeader) &&
                Objects.equals(deptsPhone, treDepts.deptsPhone) &&
                Objects.equals(status, treDepts.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(deptsId, deptsName, deptsCode, deptsNum, deptsLeader, deptsPhone, status);
    }

    public Integer getDeptsId() {
        return deptsId;
    }

    public void setDeptsId(Integer deptsId) {
        this.deptsId = deptsId;
    }

    public String getDeptsName() {
        return deptsName;
    }

    public void setDeptsName(String deptsName) {
        this.deptsName = deptsName;
    }

    public String getDeptsCode() {
        return deptsCode;
    }

    public void setDeptsCode(String deptsCode) {
        this.deptsCode = deptsCode;
    }

    public Integer getDeptsNum() {
        return deptsNum;
    }

    public void setDeptsNum(Integer deptsNum) {
        this.deptsNum = deptsNum;
    }

    public String getDeptsLeader() {
        return deptsLeader;
    }

    public void setDeptsLeader(String deptsLeader) {
        this.deptsLeader = deptsLeader;
    }

    public String getDeptsPhone() {
        return deptsPhone;
    }

    public void setDeptsPhone(String deptsPhone) {
        this.deptsPhone = deptsPhone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


}
